package com.youlai.boot.diet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.diet.model.entity.DietPlan;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.diet.model.query.DietPlanQuery;
import com.youlai.boot.diet.model.vo.DietPlanVO;
import com.youlai.boot.common.model.WeekCalendarVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 饮食计划Mapper接口
 *
 * @author cuisheng
 * @since 2025-03-30 19:06
 */
@Mapper
public interface DietPlanMapper extends BaseMapper<DietPlan> {

    /**
     * 获取饮食计划分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return
     */
    Page<DietPlanVO> getDietPlanPage(Page<DietPlanVO> page, DietPlanQuery queryParams);

    List<WeekCalendarVO> weekCalendar(@Param("userId") Long userId, @Param("dates") List<String> dates);
}
